package com.skiving.cloud.auth.serverclient;

import com.skiving.cloud.auth.entity.UserQueryParameter;
import com.skiving.cloud.common.utils.ReturnT;
import org.noear.nami.annotation.NamiBody;
import org.noear.nami.annotation.NamiClient;
import org.noear.nami.annotation.NamiMapping;

import java.util.List;

@NamiClient(name = "admin", group = "DEFAULT_GROUP", path = "/sysUser/", fallback = ClientSysUserServiceFallback.class)
public interface ClientNamiSysUserService {
    /**
     * 根据岗位ID和用户ID查询用户姓名
     * @param parameter 参数
     * @return 逗号隔开的用户姓名
     */
    @NamiMapping("POST getUserNameByStationIdsAndUserIds")
    ReturnT<String> getUserNameByStationIdsAndUserIds(@NamiBody UserQueryParameter parameter);

    /**
     * 根据用户ID获取岗位集合
     * @param userId 用户ID
     * @return 结果
     */
    @NamiMapping("GET getStationIdListByUserIdRpc")
    List<String> getStationIdListByUserId(String userId);

}
